<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
$this->checkm();
if($_RQ['op']=='main'){
		$set = $this->plugin_setting('basic');
		$id = intval($_RQ['id']);
		$mid = $id;
		$info=pdo_get('core_members',array('id'=>$_SESSION['uid']),array('avatar','nickname','mobile'));
		$member=pdo_get('jy_jdk_members',array('uid'=>$_SESSION['uid']));
		$return['info']=$info;
		$return['member']=$member;
		$qr = $this->plugin_setting('qr');
		$qr =$qr['qr'];
		
		if(!$qr){
			$url=custom_url('/index//from_user='.$_SESSION['uid'],true);
			$qr=cfc('tools')->createqrcode($url,150,true);
			$this->plugin_setting('qr',array('qr'=>$qr));
		}
		$return['qr']=$qr;
		exi($return);
	}
?>